import request from '@/utils/request'

// /获取司机分页数据
export const getDirverList = (params) => {
  return request({
    url: '/manager/driver/page',
    params
  })
}
// 获取司机基本信息详情

export const getDirverInfo = (id) => {
  return request({
    url: `/manager/driver/${id}`
    // params: {
    //   0: id
    // }
  })
}
// 获取司机驾驶证信息
export const getCarInfo = (id) => {
  return request({
    url: `/manager/driverLicense/${id}`
  })
}

// 保存司机信息
export const updateDirverInfo = (id, data) => {
  return request({
    url: `/manager/driver/${id}`,
    method: 'put',
    data
  })
}

// 获取已经停用的车辆

export const unWorkingTrucks = () => {
  return request({
    url: `/manager/unWorkingTrucks`
  })
}

